package gimys;

public class Point {
	public float x,y;
	
	public Point(float pX, float pY) {
		x = pX;
		y = pY;
	}
	
	public float getDistance(Point p) {
		return (float) Math.sqrt(Math.pow(this.x - p.x, 2) + Math.pow(this.y - p.y, 2));
	}
	
	public String toString() {
		return "(" + x + "," + y + ")";
	}
}
